import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/api/auth/user/login',
    method: 'post',
    data
  })
}

export function getInfo(data) {
  return request({
    url: '/api/auth/user/getByToken',
    method: 'post',
    data
  })
}

export function verifyToken() {
  return request({
    url: '/api/auth/user/verifyToken',
    method: 'post'
  })
}

export function logout(data) {
  return request({
    url: '/api/auth/user/exitLogin',
    method: 'post',
    data
  })
}
